import axios from 'axios';
import {ajax,base} from './config'

// 店铺
export const regUser = params => { return ajax.postData({url:`${base}api/tenantUserController/regUser.do`, params}); };
export const areaList = params => { return ajax.getMinData({url:`${base}api/tenantUserController/areaList.do`, params}); };

export const list = params => { return ajax.getMinData({url:`${base}api/shopController/list.do`, params}); };
export const update = params => { return ajax.postData({url:`${base}api/tenantUserController/update.do`, params}); };
export const save = params => { return ajax.postData({url:`${base}api/shopController/save.do`, params}); };
export const del = params => { return ajax.postData({url:`${base}api/shopController/del.do`, params}); };
export const getCurrentShop = params => { return ajax.getMinData({url:`${base}api/tenantUserController/getCurrentShop.do`, params}); };